import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { IconsProviderModule } from './icons-provider.module';
import { NgZorroAntdModule, NZ_I18N, zh_CN } from 'ng-zorro-antd';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { QuillModule } from 'ngx-quill';
import {Http} from './service/http';
import {Service} from './service/service';
import { LoginComponent } from './login/login.component';
import { LayoutComponent } from './layout/layout.component';
import { ManagerComponent } from './manager/manager.component';
import { RoleComponent } from './role/role.component';
import { AccessComponent } from './access/access.component';
import { typePipe } from './access/type.pipe';
import { UserComponent } from './user/user.component';
import { ProjectComponent } from './project/project.component';
registerLocaleData(zh);

@NgModule({
  declarations: [
    AppComponent,
    LoginComponent,
    LayoutComponent,
    ManagerComponent,
    RoleComponent,
    AccessComponent,
    typePipe,
    UserComponent,
    ProjectComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    IconsProviderModule,
    NgZorroAntdModule,
    FormsModule,
    HttpClientModule,
    BrowserAnimationsModule,
    QuillModule.forRoot()
  ],

  providers: [{ provide: NZ_I18N, useValue: zh_CN }, Http, Service],
  bootstrap: [AppComponent]
})
export class AppModule { }
